<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>demo</title>
		<script src="js/jquery.min.js" type="text/javascript"></script>
		<link rel="stylesheet" type="text/css" href="css/register.css" />
	</head>
	<body>
		<div class="login layui-anim layui-anim-up">
			<div class="message">用户登陆</div>
			<div id="darkbannerwrap"></div>

			<form method="post" class="layui-form">
				<input name="username" placeholder="用户名" type="text" lay-verify="required" class="layui-input">
				<hr class="hr15">
				<input name="password" lay-verify="required" placeholder="密码" type="password" class="layui-input">
				<hr class="hr15">
				<input name="rem-checkbox" type="checkbox" class="rem"/><span class="rem">记住密码</span>
				<input value="立即登录" lay-submit lay-filter="login" style="width:100%;" type="submit">
				<hr class="hr20">
			</form>
		</div>
		<script>
			$(function() {
				layui.use('form', function() {
					var form = layui.form;
					// layer.msg('玩命卖萌中', function(){
					//   //关闭后的操作
					//   });
					//监听提交
					form.on('submit(login)', function(data) {
						// alert(888)
						layer.msg(JSON.stringify(data.field), function() {
							location.href = 'index.html'
						});
						return false;
					});
				});
			})
		</script>
		<!-- 底部结束 -->
		<script>
			//百度统计可去掉
			var _hmt = _hmt || [];
			(function() {
				var hm = document.createElement("script");
				hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
				var s = document.getElementsByTagName("script")[0];
				s.parentNode.insertBefore(hm, s);
			})();
		</script>
	</body>

</html>
